package receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;

public class CallReceiver extends BroadcastReceiver {
    public CallReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        SharedPreferences sp=context.getSharedPreferences("ip",Context.MODE_PRIVATE);
        sp.edit().putString("number",getResultData()).apply();
        System.out.println(getResultData());
        Log.d("TAG",getResultData());
        abortBroadcast();

    }
}
